<template>
  <div id="app" :class="$route.meta.isBg && width<640 && 'black-bg'">
    <!--<keep-alive></keep-alive>-->
    <router-view name="head"></router-view>
    <router-view name="body"></router-view>
    <router-view name="foot"></router-view>
  </div>
</template>
<script>
export default {
  data(){
    return {
      width:window.innerWidth
    }
  }
}
</script>
<style lang="less">
.black-bg{background-color: #1d1e22;}
</style>
